package com.ymttest.database.sharding.db.sharding.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RefundBillExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RefundBillExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRefundBillNoIsNull() {
            addCriterion("refund_bill_no is null");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoIsNotNull() {
            addCriterion("refund_bill_no is not null");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoEqualTo(String value) {
            addCriterion("refund_bill_no =", value, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoNotEqualTo(String value) {
            addCriterion("refund_bill_no <>", value, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoGreaterThan(String value) {
            addCriterion("refund_bill_no >", value, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoGreaterThanOrEqualTo(String value) {
            addCriterion("refund_bill_no >=", value, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoLessThan(String value) {
            addCriterion("refund_bill_no <", value, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoLessThanOrEqualTo(String value) {
            addCriterion("refund_bill_no <=", value, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoLike(String value) {
            addCriterion("refund_bill_no like", value, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoNotLike(String value) {
            addCriterion("refund_bill_no not like", value, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoIn(List<String> values) {
            addCriterion("refund_bill_no in", values, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoNotIn(List<String> values) {
            addCriterion("refund_bill_no not in", values, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoBetween(String value1, String value2) {
            addCriterion("refund_bill_no between", value1, value2, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andRefundBillNoNotBetween(String value1, String value2) {
            addCriterion("refund_bill_no not between", value1, value2, "refundBillNo");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Long value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }
        
        public Criteria andOrderIdAndCatalogIdEqualTo(Long value, String catalogId) {
            addCriterion("order_id =", value, "orderId");
            addCriterion("catalog_id =", catalogId, "catalogId");
            addCriterion("refund_status = 1");
            return (Criteria) this;
        }
        
        public Criteria andOrderIdAndCatalogIdEqualToForShenqi(Long value, String catalogId) {
            addCriterion("order_id =", value, "orderId");
            addCriterion("catalog_id =", catalogId, "catalogId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Long value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Long value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Long value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Long> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Long> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Long value1, Long value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIsNull() {
            addCriterion("total_amount is null");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIsNotNull() {
            addCriterion("total_amount is not null");
            return (Criteria) this;
        }

        public Criteria andTotalAmountEqualTo(BigDecimal value) {
            addCriterion("total_amount =", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotEqualTo(BigDecimal value) {
            addCriterion("total_amount <>", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountGreaterThan(BigDecimal value) {
            addCriterion("total_amount >", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("total_amount >=", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountLessThan(BigDecimal value) {
            addCriterion("total_amount <", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("total_amount <=", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIn(List<BigDecimal> values) {
            addCriterion("total_amount in", values, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotIn(List<BigDecimal> values) {
            addCriterion("total_amount not in", values, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_amount between", value1, value2, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_amount not between", value1, value2, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountIsNull() {
            addCriterion("account_amount is null");
            return (Criteria) this;
        }

        public Criteria andAccountAmountIsNotNull() {
            addCriterion("account_amount is not null");
            return (Criteria) this;
        }

        public Criteria andAccountAmountEqualTo(BigDecimal value) {
            addCriterion("account_amount =", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountNotEqualTo(BigDecimal value) {
            addCriterion("account_amount <>", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountGreaterThan(BigDecimal value) {
            addCriterion("account_amount >", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("account_amount >=", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountLessThan(BigDecimal value) {
            addCriterion("account_amount <", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("account_amount <=", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountIn(List<BigDecimal> values) {
            addCriterion("account_amount in", values, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountNotIn(List<BigDecimal> values) {
            addCriterion("account_amount not in", values, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("account_amount between", value1, value2, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("account_amount not between", value1, value2, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountIsNull() {
            addCriterion("thirdparty_amount is null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountIsNotNull() {
            addCriterion("thirdparty_amount is not null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountEqualTo(BigDecimal value) {
            addCriterion("thirdparty_amount =", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountNotEqualTo(BigDecimal value) {
            addCriterion("thirdparty_amount <>", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountGreaterThan(BigDecimal value) {
            addCriterion("thirdparty_amount >", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("thirdparty_amount >=", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountLessThan(BigDecimal value) {
            addCriterion("thirdparty_amount <", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("thirdparty_amount <=", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountIn(List<BigDecimal> values) {
            addCriterion("thirdparty_amount in", values, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountNotIn(List<BigDecimal> values) {
            addCriterion("thirdparty_amount not in", values, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("thirdparty_amount between", value1, value2, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("thirdparty_amount not between", value1, value2, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andCardAmountIsNull() {
            addCriterion("card_amount is null");
            return (Criteria) this;
        }

        public Criteria andCardAmountIsNotNull() {
            addCriterion("card_amount is not null");
            return (Criteria) this;
        }

        public Criteria andCardAmountEqualTo(BigDecimal value) {
            addCriterion("card_amount =", value, "cardAmount");
            return (Criteria) this;
        }

        public Criteria andCardAmountNotEqualTo(BigDecimal value) {
            addCriterion("card_amount <>", value, "cardAmount");
            return (Criteria) this;
        }

        public Criteria andCardAmountGreaterThan(BigDecimal value) {
            addCriterion("card_amount >", value, "cardAmount");
            return (Criteria) this;
        }

        public Criteria andCardAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("card_amount >=", value, "cardAmount");
            return (Criteria) this;
        }

        public Criteria andCardAmountLessThan(BigDecimal value) {
            addCriterion("card_amount <", value, "cardAmount");
            return (Criteria) this;
        }

        public Criteria andCardAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("card_amount <=", value, "cardAmount");
            return (Criteria) this;
        }

        public Criteria andCardAmountIn(List<BigDecimal> values) {
            addCriterion("card_amount in", values, "cardAmount");
            return (Criteria) this;
        }

        public Criteria andCardAmountNotIn(List<BigDecimal> values) {
            addCriterion("card_amount not in", values, "cardAmount");
            return (Criteria) this;
        }

        public Criteria andCardAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("card_amount between", value1, value2, "cardAmount");
            return (Criteria) this;
        }

        public Criteria andCardAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("card_amount not between", value1, value2, "cardAmount");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andSellerIdIsNull() {
            addCriterion("seller_id is null");
            return (Criteria) this;
        }

        public Criteria andSellerIdIsNotNull() {
            addCriterion("seller_id is not null");
            return (Criteria) this;
        }

        public Criteria andSellerIdEqualTo(Long value) {
            addCriterion("seller_id =", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotEqualTo(Long value) {
            addCriterion("seller_id <>", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdGreaterThan(Long value) {
            addCriterion("seller_id >", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdGreaterThanOrEqualTo(Long value) {
            addCriterion("seller_id >=", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdLessThan(Long value) {
            addCriterion("seller_id <", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdLessThanOrEqualTo(Long value) {
            addCriterion("seller_id <=", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdIn(List<Long> values) {
            addCriterion("seller_id in", values, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotIn(List<Long> values) {
            addCriterion("seller_id not in", values, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdBetween(Long value1, Long value2) {
            addCriterion("seller_id between", value1, value2, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotBetween(Long value1, Long value2) {
            addCriterion("seller_id not between", value1, value2, "sellerId");
            return (Criteria) this;
        }

        public Criteria andRefundStatusIsNull() {
            addCriterion("refund_status is null");
            return (Criteria) this;
        }

        public Criteria andRefundStatusIsNotNull() {
            addCriterion("refund_status is not null");
            return (Criteria) this;
        }

        public Criteria andRefundStatusEqualTo(Integer value) {
            addCriterion("refund_status =", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusNotEqualTo(Integer value) {
            addCriterion("refund_status <>", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusGreaterThan(Integer value) {
            addCriterion("refund_status >", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("refund_status >=", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusLessThan(Integer value) {
            addCriterion("refund_status <", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusLessThanOrEqualTo(Integer value) {
            addCriterion("refund_status <=", value, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusIn(List<Integer> values) {
            addCriterion("refund_status in", values, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusNotIn(List<Integer> values) {
            addCriterion("refund_status not in", values, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusBetween(Integer value1, Integer value2) {
            addCriterion("refund_status between", value1, value2, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("refund_status not between", value1, value2, "refundStatus");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusIsNull() {
            addCriterion("refund_bill_status is null");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusIsNotNull() {
            addCriterion("refund_bill_status is not null");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusEqualTo(Integer value) {
            addCriterion("refund_bill_status =", value, "refundBillStatus");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusNotEqualTo(Integer value) {
            addCriterion("refund_bill_status <>", value, "refundBillStatus");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusGreaterThan(Integer value) {
            addCriterion("refund_bill_status >", value, "refundBillStatus");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("refund_bill_status >=", value, "refundBillStatus");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusLessThan(Integer value) {
            addCriterion("refund_bill_status <", value, "refundBillStatus");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusLessThanOrEqualTo(Integer value) {
            addCriterion("refund_bill_status <=", value, "refundBillStatus");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusIn(List<Integer> values) {
            addCriterion("refund_bill_status in", values, "refundBillStatus");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusNotIn(List<Integer> values) {
            addCriterion("refund_bill_status not in", values, "refundBillStatus");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusBetween(Integer value1, Integer value2) {
            addCriterion("refund_bill_status between", value1, value2, "refundBillStatus");
            return (Criteria) this;
        }

        public Criteria andRefundBillStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("refund_bill_status not between", value1, value2, "refundBillStatus");
            return (Criteria) this;
        }

        public Criteria andCatalogIdIsNull() {
            addCriterion("catalog_id is null");
            return (Criteria) this;
        }

        public Criteria andCatalogIdIsNotNull() {
            addCriterion("catalog_id is not null");
            return (Criteria) this;
        }

        public Criteria andCatalogIdEqualTo(String value) {
            addCriterion("catalog_id =", value, "catalogId");
            return (Criteria) this;
        }

        public Criteria andCatalogIdNotEqualTo(String value) {
            addCriterion("catalog_id <>", value, "catalogId");
            return (Criteria) this;
        }

        public Criteria andCatalogIdGreaterThan(String value) {
            addCriterion("catalog_id >", value, "catalogId");
            return (Criteria) this;
        }

        public Criteria andCatalogIdGreaterThanOrEqualTo(String value) {
            addCriterion("catalog_id >=", value, "catalogId");
            return (Criteria) this;
        }

        public Criteria andCatalogIdLessThan(String value) {
            addCriterion("catalog_id <", value, "catalogId");
            return (Criteria) this;
        }

        public Criteria andCatalogIdLessThanOrEqualTo(String value) {
            addCriterion("catalog_id <=", value, "catalogId");
            return (Criteria) this;
        }

        public Criteria andCatalogIdLike(String value) {
            addCriterion("catalog_id like", value, "catalogId");
            return (Criteria) this;
        }

        public Criteria andCatalogIdNotLike(String value) {
            addCriterion("catalog_id not like", value, "catalogId");
            return (Criteria) this;
        }

        public Criteria andCatalogIdIn(List<String> values) {
            addCriterion("catalog_id in", values, "catalogId");
            return (Criteria) this;
        }

        public Criteria andCatalogIdNotIn(List<String> values) {
            addCriterion("catalog_id not in", values, "catalogId");
            return (Criteria) this;
        }

        public Criteria andCatalogIdBetween(String value1, String value2) {
            addCriterion("catalog_id between", value1, value2, "catalogId");
            return (Criteria) this;
        }

        public Criteria andCatalogIdNotBetween(String value1, String value2) {
            addCriterion("catalog_id not between", value1, value2, "catalogId");
            return (Criteria) this;
        }

        public Criteria andProductCountIsNull() {
            addCriterion("product_count is null");
            return (Criteria) this;
        }

        public Criteria andProductCountIsNotNull() {
            addCriterion("product_count is not null");
            return (Criteria) this;
        }

        public Criteria andProductCountEqualTo(Integer value) {
            addCriterion("product_count =", value, "productCount");
            return (Criteria) this;
        }

        public Criteria andProductCountNotEqualTo(Integer value) {
            addCriterion("product_count <>", value, "productCount");
            return (Criteria) this;
        }

        public Criteria andProductCountGreaterThan(Integer value) {
            addCriterion("product_count >", value, "productCount");
            return (Criteria) this;
        }

        public Criteria andProductCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_count >=", value, "productCount");
            return (Criteria) this;
        }

        public Criteria andProductCountLessThan(Integer value) {
            addCriterion("product_count <", value, "productCount");
            return (Criteria) this;
        }

        public Criteria andProductCountLessThanOrEqualTo(Integer value) {
            addCriterion("product_count <=", value, "productCount");
            return (Criteria) this;
        }

        public Criteria andProductCountIn(List<Integer> values) {
            addCriterion("product_count in", values, "productCount");
            return (Criteria) this;
        }

        public Criteria andProductCountNotIn(List<Integer> values) {
            addCriterion("product_count not in", values, "productCount");
            return (Criteria) this;
        }

        public Criteria andProductCountBetween(Integer value1, Integer value2) {
            addCriterion("product_count between", value1, value2, "productCount");
            return (Criteria) this;
        }

        public Criteria andProductCountNotBetween(Integer value1, Integer value2) {
            addCriterion("product_count not between", value1, value2, "productCount");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundIsNull() {
            addCriterion("topspeed_refund is null");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundIsNotNull() {
            addCriterion("topspeed_refund is not null");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundEqualTo(Boolean value) {
            addCriterion("topspeed_refund =", value, "topspeedRefund");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundNotEqualTo(Boolean value) {
            addCriterion("topspeed_refund <>", value, "topspeedRefund");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundGreaterThan(Boolean value) {
            addCriterion("topspeed_refund >", value, "topspeedRefund");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundGreaterThanOrEqualTo(Boolean value) {
            addCriterion("topspeed_refund >=", value, "topspeedRefund");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundLessThan(Boolean value) {
            addCriterion("topspeed_refund <", value, "topspeedRefund");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundLessThanOrEqualTo(Boolean value) {
            addCriterion("topspeed_refund <=", value, "topspeedRefund");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundIn(List<Boolean> values) {
            addCriterion("topspeed_refund in", values, "topspeedRefund");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundNotIn(List<Boolean> values) {
            addCriterion("topspeed_refund not in", values, "topspeedRefund");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundBetween(Boolean value1, Boolean value2) {
            addCriterion("topspeed_refund between", value1, value2, "topspeedRefund");
            return (Criteria) this;
        }

        public Criteria andTopspeedRefundNotBetween(Boolean value1, Boolean value2) {
            addCriterion("topspeed_refund not between", value1, value2, "topspeedRefund");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountIsNull() {
            addCriterion("deducted_coupon_amount is null");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountIsNotNull() {
            addCriterion("deducted_coupon_amount is not null");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountEqualTo(BigDecimal value) {
            addCriterion("deducted_coupon_amount =", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountNotEqualTo(BigDecimal value) {
            addCriterion("deducted_coupon_amount <>", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountGreaterThan(BigDecimal value) {
            addCriterion("deducted_coupon_amount >", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("deducted_coupon_amount >=", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountLessThan(BigDecimal value) {
            addCriterion("deducted_coupon_amount <", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("deducted_coupon_amount <=", value, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountIn(List<BigDecimal> values) {
            addCriterion("deducted_coupon_amount in", values, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountNotIn(List<BigDecimal> values) {
            addCriterion("deducted_coupon_amount not in", values, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("deducted_coupon_amount between", value1, value2, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedCouponAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("deducted_coupon_amount not between", value1, value2, "deductedCouponAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountIsNull() {
            addCriterion("no_settlement_coupon_amount is null");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountIsNotNull() {
            addCriterion("no_settlement_coupon_amount is not null");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountEqualTo(BigDecimal value) {
            addCriterion("no_settlement_coupon_amount =", value, "noSettlementCouponAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountNotEqualTo(BigDecimal value) {
            addCriterion("no_settlement_coupon_amount <>", value, "noSettlementCouponAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountGreaterThan(BigDecimal value) {
            addCriterion("no_settlement_coupon_amount >", value, "noSettlementCouponAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("no_settlement_coupon_amount >=", value, "noSettlementCouponAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountLessThan(BigDecimal value) {
            addCriterion("no_settlement_coupon_amount <", value, "noSettlementCouponAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("no_settlement_coupon_amount <=", value, "noSettlementCouponAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountIn(List<BigDecimal> values) {
            addCriterion("no_settlement_coupon_amount in", values, "noSettlementCouponAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountNotIn(List<BigDecimal> values) {
            addCriterion("no_settlement_coupon_amount not in", values, "noSettlementCouponAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("no_settlement_coupon_amount between", value1, value2, "noSettlementCouponAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementCouponAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("no_settlement_coupon_amount not between", value1, value2, "noSettlementCouponAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountIsNull() {
            addCriterion("deducted_promotion_amount is null");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountIsNotNull() {
            addCriterion("deducted_promotion_amount is not null");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountEqualTo(BigDecimal value) {
            addCriterion("deducted_promotion_amount =", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountNotEqualTo(BigDecimal value) {
            addCriterion("deducted_promotion_amount <>", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountGreaterThan(BigDecimal value) {
            addCriterion("deducted_promotion_amount >", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("deducted_promotion_amount >=", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountLessThan(BigDecimal value) {
            addCriterion("deducted_promotion_amount <", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("deducted_promotion_amount <=", value, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountIn(List<BigDecimal> values) {
            addCriterion("deducted_promotion_amount in", values, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountNotIn(List<BigDecimal> values) {
            addCriterion("deducted_promotion_amount not in", values, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("deducted_promotion_amount between", value1, value2, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andDeductedPromotionAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("deducted_promotion_amount not between", value1, value2, "deductedPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountIsNull() {
            addCriterion("no_settlement_promotion_amount is null");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountIsNotNull() {
            addCriterion("no_settlement_promotion_amount is not null");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountEqualTo(BigDecimal value) {
            addCriterion("no_settlement_promotion_amount =", value, "noSettlementPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountNotEqualTo(BigDecimal value) {
            addCriterion("no_settlement_promotion_amount <>", value, "noSettlementPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountGreaterThan(BigDecimal value) {
            addCriterion("no_settlement_promotion_amount >", value, "noSettlementPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("no_settlement_promotion_amount >=", value, "noSettlementPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountLessThan(BigDecimal value) {
            addCriterion("no_settlement_promotion_amount <", value, "noSettlementPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("no_settlement_promotion_amount <=", value, "noSettlementPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountIn(List<BigDecimal> values) {
            addCriterion("no_settlement_promotion_amount in", values, "noSettlementPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountNotIn(List<BigDecimal> values) {
            addCriterion("no_settlement_promotion_amount not in", values, "noSettlementPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("no_settlement_promotion_amount between", value1, value2, "noSettlementPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andNoSettlementPromotionAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("no_settlement_promotion_amount not between", value1, value2, "noSettlementPromotionAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountIsNull() {
            addCriterion("thirdparty_discount is null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountIsNotNull() {
            addCriterion("thirdparty_discount is not null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount =", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountNotEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount <>", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountGreaterThan(BigDecimal value) {
            addCriterion("thirdparty_discount >", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount >=", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountLessThan(BigDecimal value) {
            addCriterion("thirdparty_discount <", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount <=", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountIn(List<BigDecimal> values) {
            addCriterion("thirdparty_discount in", values, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountNotIn(List<BigDecimal> values) {
            addCriterion("thirdparty_discount not in", values, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("thirdparty_discount between", value1, value2, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("thirdparty_discount not between", value1, value2, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andFreightIsNull() {
            addCriterion("freight is null");
            return (Criteria) this;
        }

        public Criteria andFreightIsNotNull() {
            addCriterion("freight is not null");
            return (Criteria) this;
        }

        public Criteria andFreightEqualTo(BigDecimal value) {
            addCriterion("freight =", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotEqualTo(BigDecimal value) {
            addCriterion("freight <>", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightGreaterThan(BigDecimal value) {
            addCriterion("freight >", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("freight >=", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightLessThan(BigDecimal value) {
            addCriterion("freight <", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightLessThanOrEqualTo(BigDecimal value) {
            addCriterion("freight <=", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightIn(List<BigDecimal> values) {
            addCriterion("freight in", values, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotIn(List<BigDecimal> values) {
            addCriterion("freight not in", values, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("freight between", value1, value2, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("freight not between", value1, value2, "freight");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingIsNull() {
            addCriterion("after_receiving is null");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingIsNotNull() {
            addCriterion("after_receiving is not null");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingEqualTo(Boolean value) {
            addCriterion("after_receiving =", value, "afterReceiving");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingNotEqualTo(Boolean value) {
            addCriterion("after_receiving <>", value, "afterReceiving");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingGreaterThan(Boolean value) {
            addCriterion("after_receiving >", value, "afterReceiving");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingGreaterThanOrEqualTo(Boolean value) {
            addCriterion("after_receiving >=", value, "afterReceiving");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingLessThan(Boolean value) {
            addCriterion("after_receiving <", value, "afterReceiving");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingLessThanOrEqualTo(Boolean value) {
            addCriterion("after_receiving <=", value, "afterReceiving");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingIn(List<Boolean> values) {
            addCriterion("after_receiving in", values, "afterReceiving");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingNotIn(List<Boolean> values) {
            addCriterion("after_receiving not in", values, "afterReceiving");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingBetween(Boolean value1, Boolean value2) {
            addCriterion("after_receiving between", value1, value2, "afterReceiving");
            return (Criteria) this;
        }

        public Criteria andAfterReceivingNotBetween(Boolean value1, Boolean value2) {
            addCriterion("after_receiving not between", value1, value2, "afterReceiving");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(Date value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(Date value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(Date value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(Date value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(Date value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<Date> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<Date> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(Date value1, Date value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(Date value1, Date value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}